package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.entity.EnterpriseCommonParam
import cn.exrick.xboot.base.service.IEnterpriseCommonParamService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class EnterpriseCommonParamController : IEnterpriseUserController.IEnterpriseCommonParam {

    @Autowired
    private lateinit var iEnterpriseCommonParamService: IEnterpriseCommonParamService


    override fun createOrUpdateEnterpriseCommonParam(enterpriseCommonParam: EnterpriseCommonParam): Result<Any?>? {

        return iEnterpriseCommonParamService.createOrUpdateEnterpriseCommonParam(enterpriseCommonParam)
    }

    override fun removeEnterpriseCommonParam(ids: Array<out String>): Result<Any?>? {

        return iEnterpriseCommonParamService.removeEnterpriseCommonParam(ids)
    }

    override fun getEnterpriseCommonParamList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iEnterpriseCommonParamService.getEnterpriseCommonParamList(pageVo)
    }

}